package com.xana.acg.com.view;

import android.content.Context;
import android.util.AttributeSet;

import com.bumptech.glide.Glide;

import de.hdodenhof.circleimageview.CircleImageView;

public class AvatarView extends CircleImageView {
    public AvatarView(Context context) {
        super(context);
    }

    public AvatarView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public AvatarView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }
    public void setSrc(String uri){
        Glide.with(getContext())
                .load(uri)
                .centerCrop()
                .into(this);
    }

}
